<?
fusedie("This feature has been disabled.");

global $db,$user;

$e = $db->query1("select * from node where id = ".$db->sqlint($params["page"]));

skin_param("page",$e);


$id = $params["id"];

$e = $db->query1("select * from project where id = ".$db->sqlint($id)); 

if ($e["users_id"]) fusedie("This project already has a maintainer.");
if (!$user["id"]) fusedie("You must sign in before you can maintain a project.");

$db->autoquery("update","project",array(
	"id"=>$id,
	"users_id"=>$user["id"],
	));
	
#echo "<p>You are now the maintainer of this project.</p>";
header("Location: index.php"); die;
?>